package br.com.jdobjs.core.student;

import java.util.HashSet;
import java.util.Set;

public class SchoolClass {

	private Set<Student> students = new HashSet<Student>();
	private Teacher teacher;
	private long id;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public void addStudent(Student student) {
		students.add(student);
		student.setSchoolClass(this);
	}

	public void setStudents(Set<Student> students) {
		this.students = students;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
}
